/* DPlayer 动画增强 */
.dplayer-controls-enter {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dplayer-controls-leave {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dplayer-bar-wrap {
    --progress-scale: 1;
    transform: scaleY(var(--progress-scale));
    transition: transform 0.2s ease-out;
}

.dplayer-icon {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 加载动画增强 */
@keyframes dp-spin {
    0% { transform: rotate(0) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.dplayer-loading-icon {
    animation: dp-spin 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

/* 弹幕入场动画 */
.dplayer-danmaku-item {
    animation: danmaku-enter 0.4s ease-out;
}

@keyframes danmaku-enter {
    0% {
        opacity: 0;
        transform: translateX(110%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}
